import request from '@/utils/request'

// 查询临床合理用药列表
export function listClinical(query) {
  return request({
    url: '/gene-face/clinical/list',
    method: 'get',
    params: query
  })
}

// 查询临床合理用药详细
export function getClinical(id) {
  return request({
    url: '/gene-face/clinical/' + id,
    method: 'get'
  })
}

// 新增临床合理用药
export function addClinical(data) {
  return request({
    url: '/gene-face/clinical',
    method: 'post',
    data: data
  })
}

// 修改临床合理用药
export function updateClinical(data) {
  return request({
    url: '/gene-face/clinical',
    method: 'put',
    data: data
  })
}

// 删除临床合理用药
export function delClinical(id) {
  return request({
    url: '/gene-face/clinical/' + id,
    method: 'delete'
  })
}

// 导出临床合理用药
export function exportClinical(query) {
  return request({
    url: '/gene-face/clinical/export',
    method: 'get',
    params: query
  })
}
